/* 商品购物项目业务接口*/

import require from "@/req/request";



// 大家想买
export function getWantBuyGoods() {
    return require({
        url: '/cc/getWantBuyGoods',
        method: 'get',
    })
}


// 每日上新
export function getDayNewGoods() {
    return require({
        url: '/cc/getDayNewGoods',
        method: 'get',
    })
}

// 获取秒杀活动集合
export function getSeckillList() {
    return require({
        url: '/seckillInfo/getListHasChild',
        method: 'get',
    })
}

// 获取套餐集合(套餐数据不应过多，上限最多5个)
export function getPackageList() {
    return require({
        url: '/hm/packageList',
        method: 'get',
    })
}


// 商品列表
export function getGoodsPage(params: any, data: any) {
    return require({
        url: '/hm/goodsPage',
        method: 'post',
        params,
        data,
    })
}


// 根据id获取商品信息
export function getGoodsBy(params: any) {
    return require({
        url: '/hm/getGoodsBy',
        method: 'get',
        params,
    })
}


// 支付页面-收件人信息、订单信息
export function payYe(params: any) {
    return require({
        url: '/pp/payYe',
        method: 'get',
        params,
    })
}

// 支付提交
export function payOk(data: any) {
    return require({
        url: '/pp/payOk',
        method: 'post',
        data,
    })
}
